Counts the number of feature types in a font.
OSStatus ATSUCountFontFeatureTypes (
ATSUFontID iFont,
ItemCount *oTypeCount);
iFontID
A value of type ATSUFontID. Pass the ID of the font whose feature types you want to count.
oTypeCount
A pointer to a count. On return, the number of feature types in the font. You cannot pass NULL for this parameter.
function result
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font. For a list of other ATSUI-specific result codes, see Result Codes.
DISCUSSION
The ATSUCountFontFeatureTypes function counts the total number of feature types defined in a font. You can use this count to determine how much memory to allocate for the oTypes array in the function ATSUGetFontFeatureTypes.